import request from '@/utils/request.ts';

export function getQrCode() {
    return request({
        method: 'GET',
        url: `api/v1/bilibili/qrCode`,
    });
}

export function getPoll(params) {
    return request({
        method: 'GET',
        url: `api/v1/bilibili/poll`,
        params
    });
}
 
export function myUser(data) {
    return request({
        url: 'api/v1/bilibili/myUser',
        method: 'POST',
        data
    });
}

export function postBilibiliMessage(data) {
    return request({
        url: 'api/v1/bilibili/bilibiliMessage',
        method: 'POST',
        data
    });
}